
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
int **a,f,st,i,y,x;
a= new int*[5000];
int bubble(f);
{
    while (not EOF)
        a.append(int(i));
    st=clock();
    for(i=0; i<=sizeof(a)-2;i++):
        for (y=i+1; y<=sizeof(a)-1;i++):
            if a[y]>a[y+1]:
                a[y],a[y+1]=a[y+1],a[y];
    end=clock();
    return end-st;
}
f1=open("m1_sorted.txt");
f2=open("m2_reverse.txt");
f3=open("m3_shuffle.txt");
cout<<("m1_sorted"<<bubble(f1)<<"milliseconds");
cout<<("m2_reverse"<<bubble(f2)*<<"milliseconds");
cout<<("m3_shuffle"<<bubble(f3)<<"milliseconds");
}
